package com.your.package.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class AdminController {
    
    @GetMapping("")
    public String adminHome() {
        return "admin/index";  // 将渲染 templates/admin/index.html
    }
} 